chore(deps): update protobuf monorepo to v33 (major) #2304
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v28.3
->v33.0
21.7
->33.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
protocolbuffers/protobuf (com_google_protobuf)
v33.0
: Protocol Buffers v33.0Compare Source
Announcements
Bazel
d5217fd
)30d2332
)d98e2ef
)Compiler
ae308fc
)abeb130
)C++
813a7ef
)RepeatedField(Arena*)
constructor private in a future release. (768db14
)Map(Arena*)
constructor private in a future release. (543a17f
)3d94d83
)RepeatedPtrField(Arena*)
constructor private in a future release (6422b9d
)b64e490
)RuntimeAssertInBounds
to remove repeated logic and makeGet
/Mutable
easier to read. (2f270c4
)ae308fc
)e25e267
)90824aa
)6ea1640
)a959f27
)c7030f4
)95b1763
)Java
Restored compatibility of runtime with gencode created with protoc <3.21
With this release, compatibility of the runtime with older gencode down to 3.0.0 is restored, compared to the previous support minimum of gencode created with 3.22+. Note that it is still strongly recommended to regenerate your gencode with a newer protoc and to avoid using gencode which was created with an old protoc.
Generated code from this range is covered by CVE-2022-3171 and is potentially vulnerable to a Denial of Service risk.
JavaProto 4.x previously dropped compatibility with the potentially vulnerable generated code, having the behavior of:
Starting with this release:
-Dcom.google.protobuf.error_on_unsafe_pre22_gencode
) or to entirely silence the logged messages (-Dcom.google.protobuf.use_unsafe_pre22_gencode
)This change was made based on community feedback regarding the difficulty in identifying and quickly remediating stale gencode in their transitive dependencies weighed against a careful evaluation of the realistic risk exposure of DoS (with no risk of other concerns including information leak or RCE).
We strongly recommend that any users who observe the log messages to regenerate the corresponding code with a newer protoc. We recommend that any security-conscious services opt into the
error_on_unsafe_pre22_gencode
behavior to preclude any risk of a Denial of Service surface area being exposed.A future 4.x release may flip the default behavior to error by default as a measure to further help the ecosystem avoid the Denial of Service risks, while still maintaining the ability to opt into continuing to use insecure gencode for users who are parsing trusted inputs and where the difficulty of regenerating is high.
Changes
e55224c
)8de4002
)c4ff7a6
)537ac35
)eba6df2
)ca4fb2f
)4376591
)a995803
)7b0bee3
)varint
,fixed32
, andfixed64
fields inUnknownFieldSet.Field
(810272f
)badaf41
)c518f25
)8d51e34
)94a2a44
(ea33ae8
)7bff169
(f2257f5
)abeb130
)e05db5c
)isPlaceholder()
accessors to file, message, and enum descriptors (f978ec2
)745e15b
)b68b673
)5768acd
)7c51e5b
)GeneratedMessage.ExtendableMessage.extensions
(b25d39e
)Rust
_
(c3f7e8d
)Send
(8bff944
)Python
56b2b89
)d57d270
)5f6c013
)07ef676
)c36f728
)__slots__
to empty in.pyi
files. (38ca2d3
)4659cd7
)4ee55d7
)PHP
6fee29b
)UPB (Python/PHP/Ruby C-Extension)
c36f728
)Other
dcace2f
)4b4e405
)9806994
)a6bdd0a
)v32.1
: Protocol Buffers v32.1Compare Source
Announcements
Compiler
34d6c85
)b98f6ee
)aad0daa
)C++
aad0daa
)Java
892e0d5
)7bff169
(4a18be6
)94a2a44
(501f4a5
)d365736
)9325480
)34d6c85
)b98f6ee
)Csharp
299774c
)PHP
bc5f303
)v32.0
: Protocol Buffers v32.0Compare Source
Announcements
Bazel
6f4a990
)import option
andoption_deps
test proto in edition 2024. (c51df73
)776c5f2
)e3e56c7
)795ab9d
)da0077e
)639f1c9
)Compiler
ef3f9ca
)google.protobuf.Method.syntax
andgoogle.protobuf.Method.edition
(9ec241e
)26843b3
)import weak
andweak
field option in edition 2024 in protoc (parser and c++ runtime). (a2a0511
)C++
ef3f9ca
)7359f75
)import option
andoption_deps
test proto in edition 2024. (c51df73
)c6ba697
)26843b3
)3e935cf
)6a6ba52
)21c3c53
)import weak
andweak
field option in edition 2024 in protoc (parser and c++ runtime). (a2a0511
)Java
ef3f9ca
)import option
andoption_deps
which exclude the options from the "builder" pool (aka "import" pool). (694eedd
)7359f75
)6f4a990
)adf556f
)6216ae4
)5777d3b
)527b2ab
)26843b3
)c3177fb
)84c5b63
)Csharp
0014173
)7359f75
)6216ae4
)26843b3
)c2b4040
)dc4e429
)Objective-C
26843b3
)Rust
DEP_UPB_VERSION
check in codegen crate (#22764) (6f6012a
)26843b3
)1b4b5fc
)e2fd7a0
)aba2075
)aca1ed5
)Python
ef3f9ca
)7359f75
)1a7e012
)0b25f7b
)72abf95
)--incompatible_config_setting_private_default_visibility
(#22745) (5e2838e
)64a76e6
)508aba1
)26843b3
)1af7fd4
)49d9e2d
)f59b84a
)e5f9ab4
)e004c8b
)17838be
)f69180a
)6972464
)cbad456
)f63ed55
)4274909
)727a8ed
)PHP
26843b3
)9fbce62
)01a7429
)676666e
)PHP C-Extension
6216ae4
)158d8ac
)01a7429
)Ruby
--incompatible_config_setting_private_default_visibility
(#22745) (5e2838e
)26843b3
)rb_test
rules to run test (#21733) (4f74764
)Ruby C-Extension
6216ae4
)wrap_memcpy.c
compatibility shim for pre-2.14 glibc (4ba9733
)UPB (Python/PHP/Ruby C-Extension)
6216ae4
)--incompatible_config_setting_private_default_visibility
(#22745) (5e2838e
)f15d28a
)Other
e001d57
)2025051
.1 (ee68ed1
)rules_ruby
to applyneverlink = True
to thejars
rule (#21416) (88e11bd
)v31.1
: Protocol Buffers v31.1Compare Source
Announcements
Compiler
3419598
)C++
3419598
)Java
copts
attribute (#21982) (bec5b5a
)3419598
)Python
3419598
)0fe099a
)a3921fb
)Other
96a9ef6
)v31.0
: Protocol Buffers v31.0Compare Source
Announcements
Bazel
a4be867
)Compiler
9901db6
)7a26486
)dce6b0f
)2025012
and use @com_google_absl -> @abseil-cpp and com_google_googletest -> @googletest canonical BCR names. (ba6b54d
)C++
aa5410d
)d390631
)d896480
)73f3469
)683e9d2
)7a26486
)bd70a7c
)d21e8ef
)2025012
and use @com_google_absl -> @abseil-cpp and com_google_googletest -> @googletest canonical BCR names. (ba6b54d
)Get
andMutable
for repeated_field. (ffade4a
)Java
d896480
)f5cb162
)nest_in_file_class
feature for Edition 2024. (0416c3e
)Generated
annotation to eventually replacejavax.annotation.Generated
(31e57fc
)9e03ca5
)fafb0fd
)079be27
)e045fc6
)097fdb8
)Kotlin
079be27
)Csharp
afea52f
)85507b9
)Objective-C
GPBFieldDescriptor.isOptional
. (86ab252
)a639cf8
)Rust
01b42bb
)dd5bf5e
)Python
01b154c
)float_precision
apply to both float and double fields. (5b54ee3
)fff783e
)FieldMask.MergeFrom()
with unset fields. (1c87ac3
)dcafca2
)da04261
)b234305
)9fd28d9
)0324f39
)9a0b591
)308aaf4
)9befb58
)fb78c09
)0e3326b
)PHP
d82de8f
)e04fe69
)PHP C-Extension
f9863df
. (#21355) (a59988c
)d82de8f
)c398592
)e04fe69
)Ruby
rb_test
rules to run test (#21733) (0cf5489
)59e1f0f
)d3560e7
)d82de8f
)#to_hash
for message classes (#20866) (5596f6d
)5de7c80
)#
if the hashmark appears immediately before any of$
,{
, or@
. (fffa3da
)c398592
)b968d0d
)Ruby C-Extension
59e1f0f
)d82de8f
)c398592
)b968d0d
)UPB (Python/PHP/Ruby C-Extension)
3434a21
)d82de8f
)dd5bf5e
)b234305
)f398807
)e4cdf44
)3a3d697
)c398592
)upb_ByteSize
function to upb clients. Note that the current naive implementation is no more efficient than serializing the message yourself and noting the resulting size. (121fdaa
)dce6b0f
)c63fd56
)6bde8c4
. (8ef81fb
)46f9e29
)Other
rules_ruby
to applyneverlink = True
to thejars
rule (#21416) ([#21505](https://redirect.github.com/pConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.